<template>
    <el-pagination
    background
    layout="prev, pager, next"
    @current-change="changePageNum"
    :current-page="pageNum"
    :page-size="pageSize"
    :total="dataCount">
    
    </el-pagination>
</template>
<script>
export default {
    data(){
        return {
            pageNum: 1,
            pageSize: 5,
            total: 0
        }
    },
    props: ['dataCount'],
    methods: {
        changePageNum(val){
            this.pageNum = val
            this.$emit("parent-getData", this.pageNum, this.pageSize)
        }
    }
}
</script>